home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 3
/
Info_Mac_1994-01.iso
/
Development
/
General
/
Texx 0.3
/
Shutdown.exec
< prev
next >
Wrap
Text File
|
1993-11-16
|
870b
|
28 lines
/* Shutdown.exec */
say 'Shutdown.exec';
say 'Date of last change - 11/16/93';
address finder;
if rc = 0 then
do /* Address successfull */
/* If MS Word temp files exist, move them to the trash */
/* Set up a path to the system folder */
path BootDrive() || 'system folder';
do i = 1 to 4
if FileExists( 'Word Temp ' || i ) then
Move Selection 'Word Temp ' || i 0 0 BootDrive() || 'Trash';
end;
/* now empty the trash */
empty trash;
if rc <> 0 then
say 'Profile.exec -- Empty Trash failed';
/* Close all mounted volume windows */
volumes();
do i = 2 to volume.1 + 1;
close window volume.i mainwindow;
end;
end;
else /* Address failed, inform user */
say 'Shutdown.exec -- Address finder failed';
/* insert other commands here */
say 'End of Shutdown.exec';